import request from '@/utils/request'

const api_name = '/inv/stock'

export default {
  // 获取库存列表
  stockList(depotId, commId) {
    return request({
      url: `${api_name}/${depotId}/${commId}`,
      method: 'get'
    })
  },
  // 按条件查询库存列表
  stockListByDepotAndComm(depotId, commId) {
    return request({
      url: `${api_name}`,
      method: 'get',
      params: {
        depotId: depotId,
        commId: commId
      }
    })
  }
}
